<?php /* Smarty version 2.6.16, created on 2012-04-02 09:23:27
         compiled from replays_rightpanel.tpl */ ?>
<div class="video-right">
     <h4>Related Videos</h4>
	 <?php unset($this->_sections['relRow']);
$this->_sections['relRow']['name'] = 'relRow';
$this->_sections['relRow']['loop'] = is_array($_loop=$this->_tpl_vars['RelvdoRow']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['relRow']['show'] = true;
$this->_sections['relRow']['max'] = $this->_sections['relRow']['loop'];
$this->_sections['relRow']['step'] = 1;
$this->_sections['relRow']['start'] = $this->_sections['relRow']['step'] > 0 ? 0 : $this->_sections['relRow']['loop']-1;
if ($this->_sections['relRow']['show']) {
    $this->_sections['relRow']['total'] = $this->_sections['relRow']['loop'];
    if ($this->_sections['relRow']['total'] == 0)
        $this->_sections['relRow']['show'] = false;
} else
    $this->_sections['relRow']['total'] = 0;
if ($this->_sections['relRow']['show']):

            for ($this->_sections['relRow']['index'] = $this->_sections['relRow']['start'], $this->_sections['relRow']['iteration'] = 1;
                 $this->_sections['relRow']['iteration'] <= $this->_sections['relRow']['total'];
                 $this->_sections['relRow']['index'] += $this->_sections['relRow']['step'], $this->_sections['relRow']['iteration']++):
$this->_sections['relRow']['rownum'] = $this->_sections['relRow']['iteration'];
$this->_sections['relRow']['index_prev'] = $this->_sections['relRow']['index'] - $this->_sections['relRow']['step'];
$this->_sections['relRow']['index_next'] = $this->_sections['relRow']['index'] + $this->_sections['relRow']['step'];
$this->_sections['relRow']['first']      = ($this->_sections['relRow']['iteration'] == 1);
$this->_sections['relRow']['last']       = ($this->_sections['relRow']['iteration'] == $this->_sections['relRow']['total']);
?>
    <div class="related-videos">
     <div class="videosm-img">
        <a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['RelvdoRow'][$this->_sections['relRow']['index']]['video_id']; ?>
">
		<img src="uploaded/video_images/thumbs/mid_<?php echo $this->_tpl_vars['RelvdoRow'][$this->_sections['relRow']['index']]['video_image']; ?>
" alt="" border="0" height="95" width="190">
		</a>
     </div>
     <div class="related-video-desc">
     <h3><a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['RelvdoRow'][$this->_sections['relRow']['index']]['video_id']; ?>
"><?php echo $this->_tpl_vars['RelvdoRow'][$this->_sections['relRow']['index']]['video_title']; ?>
</a></h3>
     <span class="rtitle">by <em><a href="coachdetails.php?coach_id=<?php echo $this->_tpl_vars['RelvdoRow'][$this->_sections['relRow']['index']]['user_id']; ?>
" style="text-decoration:none;"><?php echo $this->_tpl_vars['RelvdoRow'][$this->_sections['relRow']['index']]['user']; ?>
</a></em><br>
     <?php echo $this->_tpl_vars['RelvdoRow'][$this->_sections['relRow']['index']]['view_count']; ?>
 views
     </span>
     </div>
    </div>
	<?php endfor; endif; ?>
 </div>
 <?php if ($this->_tpl_vars['FromPage'] == 'videodetails'): ?>
 </div>
 <?php endif; ?>